package com.cate.mapper;

import com.cate.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @CreateTime: 2023/7/26
 * @Author: <==lhd==>
 * @Description:
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where openid = #{openid}")
    User getByOpenId(String openid);

    int insert(User user);

    Integer countByMap(Map map);
}
